home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d2 / where.arc / WHEREIS.DOC < prev    next >
Encoding:
Text File  |  1988-07-04  |  3.2 KB  |  80 lines

  1.  
  2.  
  3.                              WHEREIS.EXE
  4.  
  5.                           by Keith Ledbetter
  6.  
  7.  
  8.   I know you've seen tons of WHEREIS programs, but I think you'll like this
  9. one.   It is around TWICE as fast as any other I've seen.  Also, you can
  10. tell WHEREIS to search all .ARC files for a file match, too.  For each file
  11.  match that is found, you will be shown a "directory-type" listing of:
  12.  
  13.                 a.   the file size
  14.                 b.   the date of the file
  15.                 c.   the time of the file
  16.                 d.   the full path name 
  17.                         (or .ARC name if it's in an ARC file).
  18.  
  19.  
  20.   Invoking WHEREIS is simplicity itself.  If you do not specify a path,
  21. then WHEREIS will search the entire default drive.  If you specify a
  22. starting path, then the search will occur from that path downward (only).
  23.  
  24.  
  25.   Another nice feature of WHEREIS is the "-a" switch, which tells the
  26. program to search all .ARC files for a match on the filename (the
  27. .ARC files are searched in addition to the normal, un-ARC'ed files).
  28.  
  29.  
  30.   Here are some command line examples:
  31.  
  32.  
  33.   whereis ab*.c                 search entire default drive for any filename
  34.                                 matching "ab*.c".
  35.  
  36.   whereis \turboc\ab*.c         search downward from the \turboc\ directory
  37.                                 on the default drive looking for "ab*.c".
  38.  
  39.   whereis d:*.dat -a            search entire drive d: and all .ARC files
  40.                                 on drive d: looking for "*.dat".
  41.  
  42.   whereis myprog                search entire default drive looking for
  43.                                 "myprog.*" (WHEREIS will append a ".*" to
  44.                                 a filename with no extender specified).
  45.  
  46.   whereis myprog*.c -a          search entire drive and all .ARC files for
  47.                                 a match on "myprog*.c".
  48.  
  49.  
  50.  
  51.                         ONE WORD OF CAUTION.  
  52.                         --------------------
  53.  
  54.   One thing that makes this WHEREIS much faster than most other programs of
  55. this type is that the program "cheats" a little bit when searching for
  56. subdirectories.  It does this by doing a search in each directory for
  57. a filename of "*." instead of "*.*".   By doing this, the program doesn't
  58. need to weed through tons of "normal" files, since (a) almost all files have
  59. some type of extenders, and (b) nobody makes directories with extensions.
  60.  
  61.   What this means is that if you create a subdirectory named, for example,
  62. "mycode.dir", then WHEREIS ==will not== find any files in that subdirectory.
  63. I can't imagine this being a problem for any but a handful of users;  in my
  64. 4 years of working with IBM PC's, I've never seen anyone have a directory
  65. named with an extension.
  66.  
  67.   After benchmarking both ways (looking for subdirectories with "*.*" and
  68. "*."), I decided that the BIG speed advantage purely outweighed the 
  69. possibility of a directory name having an extension.
  70.  
  71.   I hope you enjoy it.  If you need to get in touch with me, I can be
  72. reached at:
  73.  
  74.                         CompuServe:     76701,124
  75.                         GEnie     :     K.LEDBETTER
  76.  
  77.                                         Keith Ledbetter
  78.  
  79.  
  80.